package com.jumi.microservice.domain;

import com.jumi.microservice.common.page.PageDomain;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 商品列表查询条件封装值对象
 *
 * @author Administrator
 */
public class GoodsQuery extends PageDomain {

    @ApiModelProperty(value = "SPU编码")
    private Long id;

    @ApiModelProperty(value = "商品类型  1：单个商品；2：第三方商品;3:商品组合")
    private String goodsType;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品状态")
    private Integer goodsState;

    @ApiModelProperty(value = "库存状态  0:全部商品；1:预设销售库存预警")
    private Integer inventoryState;

    @ApiModelProperty(value = "供应商ID")
    private Long supplyId;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "品牌id")
    private Long brandId;

    @ApiModelProperty(value = "修改时间起始时间")
    private String updateTimeFrom;

    @ApiModelProperty(value = "修改时间结束")
    private String updateTimeTo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsState() {
        return goodsState;
    }

    public void setGoodsState(Integer goodsState) {
        this.goodsState = goodsState;
    }

    public Integer getInventoryState() {
        return inventoryState;
    }

    public void setInventoryState(Integer inventoryState) {
        this.inventoryState = inventoryState;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getUpdateTimeFrom() {
        return updateTimeFrom;
    }

    public void setUpdateTimeFrom(String updateTimeFrom) {
        this.updateTimeFrom = updateTimeFrom;
    }

    public String getUpdateTimeTo() {
        return updateTimeTo;
    }

    public void setUpdateTimeTo(String updateTimeTo) {
        this.updateTimeTo = updateTimeTo;
    }

    public Long getSupplyId() {
        return supplyId;
    }

    public void setSupplyId(Long supplyId) {
        this.supplyId = supplyId;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    @Override
    public String toString() {
        return "GoodsQuery{" +
                "id=" + id +
                ", goodsType='" + goodsType + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsState=" + goodsState +
                ", inventoryState=" + inventoryState +
                ", supplyId=" + supplyId +
                ", categoryId=" + categoryId +
                ", brandId=" + brandId +
                ", updateTimeFrom='" + updateTimeFrom + '\'' +
                ", updateTimeTo='" + updateTimeTo + '\'' +
                '}';
    }
}
